﻿using MyMVC.DAL;
using MyMVC.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMVC.BLL
{
   public class DepartmentManager
    {
        DepartmentService ds = new DepartmentService();

        /// <summary>
        /// 查询部门信息
        /// </summary>
        /// <returns></returns>
        public List<Department> getd() {
            return ds.getd();
        }

        /// <summary>
        /// 添加部门信息
        /// </summary>
        /// <param name="d"></param>
        /// <returns></returns>
        public int add(Department d) {
            return ds.addpar(d);
        }
    }
}
